Skip to content

perf(shader): specialize constant sampled-image components - #13821

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
Filip722:perf/constant-image-components-20261031
Nov 1, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
Filip722:perf/constant-image-components-20261031

Conversation

@Filip722

Copy link
Copy Markdown
Contributor

What

Partially constant sampled-image views still carry runtime channel values through registration modules, so downstream arithmetic cannot fold an explicitly zero or one channel. This exposes eligible constant components to specialization while retaining the existing image-mode selection and all nonconstant components.

  • Encode four None/Zero/IntegerOne/FloatOne values from the resolved descriptor and refresh them per invocation.
  • Fold only 32-bit direct raw samples with eligible normalized samplers; retain null, border, table, compare, packed, converted, sRGB and 16-bit paths.
  • Extend the existing prepared RuntimeImages fixture across float-one, integer-one, nonconstant, zero and back-to-float transitions.

The values follow Vulkan component swizzle semantics: ONE uses integer 1 or floating 1.0 according to the view. This extends partial-channel propagation, distinct from #1417's all-constant views and #11952's direct-mode specialization. No new guest instruction semantics or relaxed FP mode is introduced.

Tested

God of War Sons of Sparta PPSA28997 v01.008.001, saved camp after Continue, guest-requested 1920×1080 output, Wayland/mailbox. AMD Ryzen 5 7640HS, Radeon 760M integrated GPU with shared system memory, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7 / Linux 7.2.12-x64v3-xanmod1.

Fresh measured main 828ac0b2ae74 versus candidate 2898cf257380: mean frame time 45.724349 → 45.102210 ms. Four paired percentage reductions average 1.360314%, two-sided 95% Student-t CI [0.981098%, 1.739530%], df=3. Mean run FPS separately: 21.870307 → 22.171941.

Pair Main mean ms Candidate mean ms Reduction
1 45.675783 45.200485 1.040591%
2 45.650490 45.032007 1.354822%
3 45.660643 45.005139 1.435600%
4 45.910481 45.171211 1.610243%

Within-arm ranges: main 0.259990 ms, candidate 0.195346 ms; sample SDs 0.124522 and 0.097929 ms. Primary metric was fixed prospectively as window duration / presents per run. Order: warm A, warm B, A1, B1, B2, A2, B3, A3, A4, B4. All ten attempts valid, no exclusions/replacements/appended runs. Acceptance required a positive paired mean and positive lower confidence bound; individual frames were not treated as independent repetitions. This supports this machine/scene only, with four pairs; other scenes/vendors and combined optimizations are unmeasured.

All eight timing traces, summaries, complete trace_digest outputs, protocol, provenance hashes and readiness-source patch. Traces are gzip JSON in base64 text; decoding and hash verification instructions are included. Same save, scene, resolution, present mode, focus/window geometry and per-arm warmed cache seeds; no cache changes or trace drops. Every run verified 50 native libraries and nine unique guest modules, hashing through its mount namespace, plus the actual loaded RADV ICD. No validation/profiling during timing. Guest output stayed on a pseudo-terminal. Identical private readiness hooks ran outside timing and are excluded from this PR. Trace dirty:null comes from local dependency symlink status; exact source patches and loaded-library hashes are audited. VideoOut's only binary difference is generated revision text.

The same five focused tests passed on main and candidate: agc_shader_memory, agc_driver_runtime_images, and image-sample shared-sampler, unnormalized and VCC-sampler fixtures. Required Vulkan, no shader cache, verbose CTest and Khronos instance/device validation; four actual Radeon selections per arm, no skips, missing layers or VUIDs. Final hook-free head also passes the same checks. This is not a full-game validation-clean claim; historical vertex/index-buffer binding VUIDs remain outside this change.

Two earlier independent eight-run cohorts observed 1.493919% and 1.475452% aggregate frame-time reductions (all pairs positive, no exclusions), previously withheld under a superseded 1.5% cutoff. Both complete run tables and recalculated intervals are retained in the bundle; they are historical, not current-main claims. Prior actual native analysis found one fragment 3981→3348 instructions, 40→32 VGPRs, no spills; another fragment was unchanged. That work reduction is separate from the fresh gameplay evidence.

Main advanced after timing to e8c25dd3baa6 only in relinker tests and import-audit tooling. Final head dc226ce7afdf merges it; runtime, shader, build and dependency source trees are identical to the measured candidate. No retiming of unchanged runtime code was performed.

Full overlap scan: 1,608 open PRs, 43 shared-file branches. Fourteen stale/conflicting branches were unresolved automatically and manually reviewed: #907, #5021, #5371, #5609, #6280, #6412, #6488, #7642, #7689, #9183, #9852, #10193, #10652, #11126. Their changes concern compare/gather/sRGB/unnormalized/table/heap/buffer/atomic paths; no duplicate partial-component specialization, SpecId collision or required dependency was found. Conventions pass.

Main/candidate summary lines and trace_digest excerpts (all runs in the bundle)
{"commit":"828ac0b2ae74","dirty":null,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"30:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 30:12","first_present":626,"ms":12012.731},"presents":263,"frame_ms":{"p50":45.574,"p90":46.233,"p99":47.685,"max":48.236},"gpu_busy_ms_per_present":42.637,"worker_busy_pct":{"queue worker 0x0":78.389},"top_phases_ms_per_frame":{"Driver.Packet":35.675,"Driver.Packet.draw":33.231,"Driver.Draw":33.191,"Driver.Draw.draw_enqueued":29.379,"Recorder.Sync":28.352,"VideoOut.Flip":9.090,"Driver.Present":9.082,"VideoOut.Flip.present":9.055},"trace_dropped":false,"trace":"aps5-trace-828ac0b2ae74-171038.json.gz"}
{"commit":"2898cf257380","dirty":null,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"30:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 30:12","first_present":678,"ms":12023.329},"presents":266,"frame_ms":{"p50":45.135,"p90":45.615,"p99":46.881,"max":48.059},"gpu_busy_ms_per_present":42.017,"worker_busy_pct":{"queue worker 0x0":78.154},"top_phases_ms_per_frame":{"Driver.Packet":35.193,"Driver.Packet.draw":32.741,"Driver.Draw":32.703,"Driver.Draw.draw_enqueued":29.088,"Recorder.Sync":27.918,"VideoOut.Flip":9.008,"Driver.Present":8.995,"VideoOut.Flip.present":8.969},"trace_dropped":false,"trace":"aps5-trace-2898cf257380-171772.json.gz"}

seconds 30:12 from present 626: 263 presents, frame p50 45.6 / p90 46.2 / p99 47.7 / max 48.2 ms, GPU busy 42.6 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 828ac0b, dropped: no

seconds 30:12 from present 678: 266 presents, frame p50 45.1 / p90 45.6 / p99 46.9 / max 48.1 ms, GPU busy 42.0 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 2898cf2, dropped: no

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon 760M integrated GPU, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7 / Linux 7.2.12-x64v3-xanmod1
  • AI-assisted: yes (Codex)

@github-actions github-actions Bot added the perf Performance change label Oct 31, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

The exact-head shader path is gated to eligible 32-bit sampled images, retains the existing fallback for excluded modes, and the supplied performance evidence meets the repository’s paired-capture requirements.

What I ran

Reviewed head dc226ce7afdff94b06bcbc5a884032f3f1d93f9f against base/current main e8c25dd3baa6e78531d5eee067fec5cbe8af3dcf; merge preview was clean. Local environment: Linux x86-64, Python 3.11.2; I did not compile. I ran:

python3 tools/pr_precheck.py --pr 13821 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13821
python3 tools/pr_test_quality.py --root <exact-head-checkout> --json core/libs/prx/libSceAgcDriver/tests/execution/RuntimeImages.cpp core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp core/shader/recompiler/PipelineSpecialization.hpp core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
python3 tools/trace_digest.py <each decoded A1, A2, A3, A4, B1, B2, B3 and B4 trace>

I also checked each downloaded trace’s SHA-256 against provenance.json, gzip integrity, and exact equality of the generated digest with its supplied digest file. The test-quality heuristic flagged the existing C++ fixture as possibly unregistered; I inspected the CMake CONFIGURE_DEPENDS source glob and test loop, which build and register agc_driver_runtime_images.

Results

Check Result
Diff and conventions/template Passed
Current-main merge preview Clean
C++ test registration Confirmed by CMake inspection; heuristic warning was a false positive
Performance bundle All 8 hashes matched; all gzip files valid; all 8 local trace_digest.py outputs exactly matched the supplied reports
Author-reported shader validation Five focused tests passed on baseline and candidate with required Vulkan validation, no shader cache, four Radeon selections per arm, zero skips, missing layers, or VUIDs; not run locally
Hosted CI at review Conventions, intake, eligibility, report, labels, portability passed; product Linux job skipped; Windows and relinker jobs were still running or queued

The precheck’s optional ABI and test-quality helpers were absent from its isolated checkout. No exports changed, so an ABI audit was not applicable; I ran the workspace test-quality helper separately and resolved its registration signal as described above.

Raw output from local checks
All conventions checks passed.
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13821/stack/stack-report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13821/stack/stack-report.json
A1: sha256_match=True gzip=valid digest_exact_match=True bytes=2027397
B1: sha256_match=True gzip=valid digest_exact_match=True bytes=1919404
B2: sha256_match=True gzip=valid digest_exact_match=True bytes=1901006
A2: sha256_match=True gzip=valid digest_exact_match=True bytes=1924524
B3: sha256_match=True gzip=valid digest_exact_match=True bytes=1966404
A3: sha256_match=True gzip=valid digest_exact_match=True bytes=1867525
A4: sha256_match=True gzip=valid digest_exact_match=True bytes=1989030
B4: sha256_match=True gzip=valid digest_exact_match=True bytes=1950471

Negative control

Assertion Change on base Result
RuntimeImages.cpp distinguishes constant-zero/one values from sampled components Not run against base Not exercised; the C++ test requires an exact-head build, which I did not perform.

Findings

Blocking: None found.

Non-blocking: The measured result is limited to the reported Sons of Sparta scene on one Radeon 760M system, with four run pairs. The PR states this limitation; it does not claim a general gain.

Sources

Not verified

I did not compile or run the C++/Vulkan tests, independently reproduce the game captures, or test other GPUs, scenes, or consoles. The build, CTest, and hardware-validation results are author-reported. The PR head remained dc226ce7afdff94b06bcbc5a884032f3f1d93f9f when I submitted this review.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 907 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 5021 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 5371 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 5609 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 6280 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 6412 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 6488 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7223 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7642 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7689 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 8939 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9183 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9790 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9852 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 9969 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10193 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10652 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10846 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10867 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 11126 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 11551 core/shader/recompiler/PipelineSpecialization.hpp
PR 12662 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 12980 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 13928 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 13929 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/PipelineSpecialization.hpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp

@github-actions github-actions Bot added shader core/shader agc libSceAgc* labels Oct 31, 2026
@JJenkx

JJenkx commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Windows GPU run of head dc226ce7af, merged onto main e8c25dd3ba (clean merge, local only).

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, Radeon RX 6700 XT with AMD proprietary driver 26.10.1 (Vulkan 1.4.315), WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON. Khronos validation layer 1.4.363 requested for every test (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation).

  • agc_driver_runtime_images, built from the test files this PR changes: pass, 3 of 3 runs each (--repeat until-fail:3), no failures, no skips.
  • They create Vulkan instances on the RX 6700 XT: the validation layer was inserted 3 times across the runs and reported no VUIDs.

AI-assisted: yes (Claude Code).

@jacknieland

Copy link
Copy Markdown
Contributor

NVIDIA and Intel on Windows, for head dc226ce7af merged into main 73f4f7e06e (clean merge). The runs so far are AMD.

Host: Windows 11 Pro 26200, i7-9750H, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r7), Release, BUILD_TESTING=ON, Vulkan SDK 1.4.363.0 validation layer. Two GPUs, selected with ANYPS5_GPU: NVIDIA GeForce GTX 1650 (Turing, driver 566.41) and Intel UHD Graphics 630.

agc_driver_sin_cos_reduction, agc_driver_sin_cos_near_zero, agc_driver_gcn_sin_near_zero, agc_driver_vop1_float_unary, agc_driver_f16_denormal_flush, agc_driver_log_near_one and agc_driver_runtime_images, on main and on the merge, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:

  • All 7 pass on both GPUs, on main and on this PR, with no skips.
  • The extended RuntimeImages.cpp also passes on main's recompiler on both GPUs, as expected for a change meant to keep results the same, so there is no red/green.
  • Every log has 0 VUID- lines, and none contains was not found but was requested by env var VK_INSTANCE_LAYERS.

Only these test targets were built, not the full suite, and no title was run. AI-assisted.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head dc226ce merged onto main 73f4f7e · tested 2026-10-31 19:31 UTC · 22 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,343 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 48 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,396 of 3,072 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (882 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_graphics_maps_fallback 31.6 s, ⚠️ agc_driver_graphics 30.6 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 2 of the last 10 main runs
agc_driver_submit_progress: failed in 7 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 390 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (390 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, and 382 more
VUID-vkCmdCopyImage-srcImage-01548 (12 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 4 more
VUID-vkCmdCopyImage-srcImage-01551 (12 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 4 more
VUID-vkCmdCopyBuffer-commonparent (1 test): agc_driver_depth_clear_hle
Skipped (48)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or plat
Reproduce
git fetch origin dc226ce7afdff94b06bcbc5a884032f3f1d93f9f 73f4f7e06e4f210a8c6570e335fd654dc0a86134
git checkout 73f4f7e06e4f210a8c6570e335fd654dc0a86134 && git merge --no-ff dc226ce7afdff94b06bcbc5a884032f3f1d93f9f
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the diff: the spec constant ids (65536 + image) don't collide with other ranges, the per-image components are recomputed per invocation, ineligible paths (compare/gather/table/packed/converted/sRGB/16-bit, null/border samplers) keep the runtime selector, and the extended RuntimeImages fixture pins float-one, integer-one, nonconstant, zero and back-to-float values. Backed by the NVIDIA CI run and the AMD/NVIDIA/Intel Windows runs above; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants